package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.battle.pojo.converter.StringListConverter;
import com.battle.pojo.enums.StudyPlanTypeEnum;
import com.battle.pojo.enums.StudyStatusEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 * 学习计划
 */

@Data
@TableName(value = "STUDY_PLAN",autoResultMap = true)
@Entity(name = "STUDY_PLAN")
@AccEntity(value = "学习计划", type = EntityType.SERVICE_ENTITY)
public class StudyPlan extends DomainBaseEntity<StudyPlan> {

    /**
     * 计划名称
     */
    @Column(length = 255)
    private String name;

    /**
     * 学习内容
     */
    @Column()
    private StudyPlanTypeEnum type;

    /**
     * 学习数量
     */
    @Column()
    private Integer learningNumber;

    /**
     * 开始时间
     */
    @Column()
    private LocalDate startTime;

    /**
     * 结束时间
     */
    @Column()
    private LocalDate endTime;
}
